cargo-credential
This package is a library to assist writing a Cargo credential helper, which provides an interface to store tokens for authorizing access to a registry such as https://crates.io/.
Documentation about credential processes may be found at https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#credential-process
Example implementations may be found at https://github.com/rust-lang/cargo/tree/master/credential
Usage
Create a Cargo project with this as a dependency:
# Add this to your Cargo.toml:
[]
= "0.3"
And then include a main.rs
binary which implements the Credential
trait, and calls
the main
function which will call the appropriate method of the trait:
// src/main.rs
use ;
;